<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <?= \yii\helpers\Html::csrfMetaTags() ?>
    <link rel="shortcut icon" href="/favicon.ico">
    <title><?php $this->block('title');?>-慕梓生活圈</title>
    <!--css部分-->
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/css/menu.css">
    <link rel="stylesheet" href="/static/css/core.css">
    <link rel="stylesheet" href="/static/css/components.css">
    <link rel="stylesheet" href="/static/css/icons.css">
    <link rel="stylesheet" href="/static/css/pages.css">
    <link rel="stylesheet" href="/static/css/menu.css">
    <link rel="stylesheet" href="/static/css/responsive.css">
    <link rel="stylesheet" href="/static/plugins/bootstrap-sweetalert/sweet-alert.css">
    <link rel="stylesheet" href="/css/base.css">

    <script src="/static/js/modernizr.min.js"></script>
    <script src="/static/plugins/bootstrap-sweetalert/sweet-alert.min.js"></script>
    <script src="/static/js/app.js"></script>
    <script src="/js/vue.js"></script>
    <?php $this->block('cssFile');?>
    <?php $this->block('cssText');?>
    <?php $this->block('jsHeaderFile');?>
    <?php $this->block('jsHeaderText');?>
</head>
<body>
<header id="topnav">
    <div class="topbar-main">
        <div class="container">

            <div class="logo">
                <a href="/" class="logo"><i class="md md-equalizer"></i> <span>慕梓生活圈</span> </a>
            </div>

            <div class="menu-extras">

                <ul class="nav navbar-nav navbar-right pull-right">
                    <li class="hidden-xs">
                        <a href="" class="dropdown-toggle waves-effect waves-light">
                            <i class="md md-cached"></i>
                        </a>
                    </li>
                    <li class="dropdown hidden-xs">
                        <a href="" data-target="#" class="dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-expanded="true">
                            <i class="md md-notifications"></i>
                            <span class="badge badge-xs badge-pink">1</span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-lg">
                            <li class="text-center notifi-title">消息通知</li>
                            <li class="list-group nicescroll notification-list">
                                <a href="" class="list-group-item">
                                    <div class="media">
                                        <div class="pull-left p-r-10">
                                            <em class="fa fa-diamond noti-primary"></em>
                                        </div>
                                        <div class="media-body">
                                            <h5 class="media-heading">
                                                A new order has been placed A new order has been placed
                                            </h5>
                                            <p class="m-0">
                                                <small>There are new settings available</small>
                                            </p>
                                        </div>
                                    </div>
                                </a>
                            </li>

                            <li>
                                <a href="" class=" text-right">
                                    <small><b>查看所有消息</b></small>
                                </a>
                            </li>

                        </ul>
                    </li>

                    <li class="dropdown">
                        <a href="" class="dropdown-toggle waves-effect waves-light profile" data-toggle="dropdown" aria-expanded="true">
                            <img src="<?=\backend\models\Admin::getAvatar()?>" alt="user-img" class="img-circle">
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="<?=\yii\helpers\Url::toRoute('/personal/list-info')?>"><i class="ti-user m-r-5"></i> 我的信息 </a></li>
                            <li><a href="<?=\yii\helpers\Url::toRoute('/personal/update-avatar')?>"><i class="ti-upload m-r-5"></i> 上传头像 </a></li>
                            <li><a href="<?=\yii\helpers\Url::toRoute('/personal/update-password')?>"><i class="ti-key m-r-5"></i> 修改密码 </a></li>
                            <li><a href="<?=\yii\helpers\Url::toRoute('/auth/logout')?>"><i class="ti-power-off m-r-5"></i> 退出登录 </a></li>
                        </ul>
                    </li>
                </ul>

                <div class="menu-item">
                    <!-- Mobile menu toggle-->
                    <a class="navbar-toggle">
                        <div class="lines">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                    </a>
                    <!-- End mobile menu toggle-->
                </div>
            </div>

        </div>
    </div>
    <!-- End topbar -->

    <!-- Navbar Start -->
    <div class="navbar-custom">
        <div class="container">
            <div id="navigation">
                <!-- Navigation Menu-->
                <?= common\components\Menu::widget(Yii::$app->params["menu"]) ?>
                <!-- End navigation menu -->
            </div>
        </div>
    </div>
</header>

<div class="wrapper">
    <div class="container">
        <!-- Page-Title -->
        <?= $content ?>
        <!-- Page-Title -->

        <!-- Footer -->
        <footer class="footer text-right">
            <div class="container">
                <div class="row">
                    <div class="col-xs-12">
                        <?=date('Y')?> &copy; version1.0.0 | 慕梓生活圈
                    </div>
                </div>
            </div>
        </footer>
        <!-- End Footer -->

    </div> <!-- end container -->
</div>
<!--js部分-->
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/detect.js"></script>
<script src="/static/js/fastclick.js"></script>
<script src="/static/js/jquery.blockUI.js"></script>
<script src="/static/js/waves.js"></script>
<script src="/static/js/wow.min.js"></script>

<script src="/static/js/jquery.scrollTo.min.js"></script>
<script src="/static/js/jquery.nicescroll.js"></script>
<script src="/static/js/jquery.core.js"></script>
<script src="/static/js/jquery.app.js"></script>
<script src="/static/js/jquery.pajax.js"></script>

<script src="/static/plugins/parsleyjs/dist/parsley.min.js"></script>

<script src="/static/js/jquery.core.js"></script>
<script src="/static/plugins/notifyjs/dist/notify.min.js"></script>
<script src="/static/plugins/notifications/notify-metro.js"></script>

<?php $this->block('modal');?>
<?php $this->block('jsFile');?>
<?php $this->block('jsText');?>

</body>
</html>